const menuMap = {
  getMenuName(index, url) {
    for (var item of this.data[index].item) {
      if (item["url"] === url) {
        return item["name"];
      }
    }
    return undefined;
  },
  data: [
    {
      icon: "systemData",
      color: "#606266",
      title: "主数据",
      path: "mdm",
      url:'main-data',
      action: false,
      item: [
        {
          name: "物料产品管理",
          url: "material-product-manager",
        },
        {
          name: "物料产品分类",
          url: "material-classify",
        },
        {
          name: "计量单位",
          url: "unit",
        },
        {
          name: "客户管理",
          url: "customer-manager",
        },
        {
          name: "供应商管理",
          url: "supplier-manager",
        },
        {
          name: "车间设置",
          url: "workshop-manager",
        },
        {
          name: "工作站",
          url: "workstation-manager",
        },
      ],
    },
    {
      icon: "store",
      color: "#606266",
      title: "仓库管理",
      item: [
        {
          name: "仓库设置",
          url: "///",
        },
        {
          name: "库存现有量",
          url: "///",
        },
        {
          name: "采购入库",
          url: "///",
        },
        {
          name: "供应商退货",
          url: "///",
        },
        {
          name: "生产领料",
          url: "///",
        },
        {
          name: "产品入库",
          url: "///",
        },
        {
          name: "销售出库",
          url: "///",
        },
      ],
    },
    {
      icon: "facility",
      color: "#606266",
      title: "设备管理",
      item: [
        {
          name: "设备类型设置",
          url: "///",
        },
        {
          name: "设备账单",
          url: "///",
        },
        {
          name: "点检保养项目",
          url: "///",
        },
        {
          name: "维修单",
          url: "///",
        },
        {
          name: "保养计划",
          url: "///",
        },
      ],
    },
    {
      icon: "fixture",
      color: "#606266",
      title: "工装夹具管理",
      item: [
        {
          name: "设备类型设置",
          url: "///",
        },
        {
          name: "设备账单",
          url: "///",
        },
        {
          name: "点检保养项目",
          url: "///",
        },
        {
          name: "维修单",
          url: "///",
        },
        {
          name: "保养计划",
          url: "///",
        },
      ],
    },
    {
      icon: "production",
      color: "#606266",
      title: "生产管理",
      item: [
        {
          name: "设备类型设置",
          url: "///",
        },
        {
          name: "设备账单",
          url: "///",
        },
        {
          name: "点检保养项目",
          url: "///",
        },
        {
          name: "维修单",
          url: "///",
        },
        {
          name: "保养计划",
          url: "///",
        },
      ],
    },

    {
      icon: "quality",
      color: "#606266",
      title: "质量管理",
      item: [
        {
          name: "设备类型设置",
          url: "///",
        },
        {
          name: "设备账单",
          url: "///",
        },
        {
          name: "点检保养项目",
          url: "///",
        },
        {
          name: "维修单",
          url: "///",
        },
        {
          name: "保养计划",
          url: "///",
        },
      ],
    },

    {
      icon: "scheduling",
      color: "#606266",
      title: "排班管理",
      item: [
        {
          name: "设备类型设置",
          url: "///",
        },
        {
          name: "设备账单",
          url: "///",
        },
        {
          name: "点检保养项目",
          url: "///",
        },
        {
          name: "维修单",
          url: "///",
        },
        {
          name: "保养计划",
          url: "///",
        },
      ],
    },
  ],
};
export default menuMap;
